package track2.bayes;

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

import track2.context.Config;

public class getLargestId {
	public static int maxId = Integer.MIN_VALUE;
	public static int maxId2 = Integer.MIN_VALUE;

	public static void main(String[] args) throws IOException {

		getMaxId("/Users/Serena/bigml/track2/training.txt");
	}

	private static void getMaxId(String filename) throws NumberFormatException,
			IOException {
		BufferedReader br = new BufferedReader(new FileReader(filename));
		String line;
		while ((line = br.readLine()) != null) {
			String[] sp = line.split("\\t");
			String[] num = new String[2];
			num[0] = sp[5];
			num[1] = sp[6];

			int value = Integer.parseInt(num[0]);
			if (value > maxId) {
				maxId = value;
			}
			value = Integer.parseInt(num[1]);
			if (value > maxId2) {
				maxId2 = value;
			}

		}
		System.out.println(filename + ":" + "\t" + maxId + "\t" + maxId2);
	}

}
